package cn.hotel.service;


import cn.hotel.entity.User;

import java.util.List;

public interface UserService {
    public User queryUserByUserAndPass(String username, String password);

    public User queryUserById(String id);

    public int saveUser(User user);

    public int getCode(String phone,int code);

    public int changePassword(String phone,String password);

    //获取用户的数量
    int getUsers();

    public List<User> allUser();

    public int deleteByUserId(Integer userId);

    public int userCount();

    public User queryById(Integer userId);

    public int updateUser(User user);

    public List<User> getUserByName(String name);
}
